<!DOCTYPE html>
<html lang="en">
<head>
	<title>SoftDevelop Admin</title>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<?php $baseScriptUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../../wwwroot');	?>
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/bootstrap.min.css" />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/fullcalendar.css" />	
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/unicorn.main.css" />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/unicorn.grey.css" class="skin-color" />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND;?>/css/custom.css" class="skin-color" />
	<!-- blueprint CSS framework -->
</head>
<body>
	<div id="header">
		<h1><?php echo CHtml::link('Soft Develop Admin',array('/user/admin/dashboard')); ?></h1>		
	</div>
	
	<div id="search">
		<input type="text" placeholder="Search here..."/><button type="submit" class="tip-right" title="Search"><i class="icon-search icon-white"></i></button>
	</div>
	<div id="user-nav" class="navbar navbar-inverse">
		<ul class="nav btn-group">
			<li class="btn btn-inverse" ><?php echo CHtml::link('<i class="icon icon-user"></i>Profile',array('/user/profile')); ?></li>
			<!--li class="btn btn-inverse dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
				<ul class="dropdown-menu">
					<li><a class="sAdd" title="" href="#">new message</a></li>
					<li><a class="sInbox" title="" href="#">inbox</a></li>
					<li><a class="sOutbox" title="" href="#">outbox</a></li>
					<li><a class="sTrash" title="" href="#">trash</a></li>
				</ul>
			</li>
			<li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">Settings</span></a></-->
			<li class="btn btn-inverse"><?php echo CHtml::link('<i class="icon icon-share-alt"></i> <span class="text">Logout</span></a>',array('/user/logout'), array('class'=>'logout')); ?></li>
		</ul>
	</div>
		
	<div id="sidebar">
		<?php echo CHtml::link('<i class="icon icon-home"></i> Dashboard', array('/user/admin/dashboard'), array("class"=>"visible-phone")); ?>
		<ul>
			<!--li class="active"><?php echo CHtml::link('<i class="icon icon-home"></i> Dashboard',array('/user/admin/dashboard')); ?></li-->
			<li><?php echo CHtml::link('<i class="icon icon-home"></i> Dashboard',array('/user/admin/dashboard')); ?></li>
			<?php
				/* Dynamic menu */
				/* if(isset($this->backend_left_menu))
					if($this->backend_left_menu)
						echo $this->renderPartial($this->backend_left_menu, $this->backend_left_menu_datas); 
					else $this->widget('leftMenuDefault');
				else $this->widget('leftMenuDefault');
				//else $this->widget('webroot.themes.backend.views.leftMenuDefault.leftMenuDefault'); */
			?>
			<li class="submenu <?php if($this->module->getName()=="user") echo "open";?>">
				<a href="#"><i class="icon icon-th-list"></i> Manage Users <span class="label">2</span></a>
				<ul>
					<li><?php echo CHtml::link('List Users',array('/user/admin')); ?></li>
					<li><?php echo CHtml::link('Create user',array('/user/admin/create')); ?></li>
				</ul>
			</li>
			<li class="submenu <?php if($this->module->getName()=="categories") echo "open";?>"> 
				<a href="#"> <i class="icon icon-file"></i>Manage pages<span class="label">2</span></a>
				<ul>
					<li><?php echo CHtml::link('List pages',array('/categories/manageCategories/admin')); ?></li>
					<li><?php echo CHtml::link('Create pages',array('/categories/manageCategories/create')); ?></li>
				</ul>
			</li>
			<li class="submenu <?php if($this->module->getName()=="sub_categories") echo "open";?>"> 
				<a href="#"> <i class="icon icon-file"></i>Manage group tutorials<span class="label">2</span></a>
				<ul>
					<li><?php echo CHtml::link('List group tutorials',array('/sub_categories/manageSubCategories/admin')); ?></li>
					<li><?php echo CHtml::link('Create group tutorials',array('/sub_categories/manageSubCategories/create')); ?></li>
				</ul>
			</li>
			<li class="submenu <?php if($this->module->getName()=="articles") echo "open";?>"> 
				<a href="#"> <i class="icon icon-file"></i>Manage tutorials<span class="label">2</span></a>
				<ul>
					<li><?php echo CHtml::link('List tutorials',array('/articles/manageArticles/admin')); ?></li>
					<li><?php echo CHtml::link('Create tutorials',array('/articles/manageArticles/create')); ?></li>
				</ul>
			</li>
		</ul>
	</div>
	
	<!--div id="style-switcher">
		<i class="icon-arrow-left icon-white"></i>
		<span>Style:</span>
		<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
		<a href="#light-blue" style="background-color: #8399b0;"></a>
		<a href="#blue" style="background-color: #2D2F57;"></a>
		<a href="#red" style="background-color: #673232;"></a>
		<a href="#red-green" style="background-image: url('img/demo/red-green.png');background-repeat: no-repeat;"></a>
	</div-->
	
	<div id="content">
		<div id="content-header">
			<?php if(isset($this->pageTitle)) {?><h1><?php echo $this->pageTitle; ?></h1><?php } ?>
			<!--div class="btn-group">
				<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
				<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
				<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
				<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
			</div-->
		</div>
		<div id="breadcrumb">
			<?php echo CHtml::link('<i class="icon-home"></i>Dashboard',array('/user/admin/dashboard'), array("title"=>"Go to Dashboard", "class"=>"tip-bottom")); ?>
			<?php 
			if(isset($this->categoryTitle) && $this->categoryTitle) {
				$categoryUrl = "/";
				if(isset($this->module)) $categoryUrl .= $this->module->id.'/';
				$categoryUrl .= $this->ID."/admin";
				echo CHtml::link($this->categoryTitle,array($categoryUrl), array("title"=>$this->categoryTitle, "class"=>"tip-bottom")); 
			}
			?>
			<?php if(isset($this->pageTitle)) { ?><a href="#" class="current"><?php echo $this->pageTitle; ?></a><?php }?>
		</div>
		<div class="container-fluid">
			<?php echo $content; ?>
		</div>
		<div class="row-fluid row-footer">
			<div id="footer" class="span12">
				2012 - 2013 &copy; Soft Develop Admin. Develop by duongqhai@gmail.com</a>
			</div>
		</div>
	</div>
	
	<!--script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/excanvas.min.js">	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery-ui.custom.js">	</script-->
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/bootstrap.min.js">	</script>
	<!--script type="text/javascript" src="< ?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery.flot.min.js">	</script>
	<script type="text/javascript" src="< ?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery.flot.resize.min.js">	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery.peity.min.js">	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/fullcalendar.js">	</script-->
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/unicorn.js">	</script>
	<!--script type="text/javascript" src="< ?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/unicorn.dashboard.js">	</script-->
</body>
</html>